package service;

import model.JoinTeamMsg2;
import model.Team;

import java.util.List;

public interface TeamService {

    int teamAdd(Team team);

    int teamDelete(int tid);

    int teamquit(int uid, int tid);

    int teamIsFull(int tid);

    List<Team> findTeamListByRace(int rid ,int pageIndex, int pageSize );

    int teamListByRaceCount(int rid);
    int getTeamUserCount(int tid);

    int teamUserAdd(int uid, int tid);

    List<Team> teamByRaceAndName(int rid, String tname, int pageIndex, int pageSize);

    int teamByRaceAndNameCount(int rid, String tname);
    boolean teamByIdAndRace(int lid ,int rid);

    int countTeamByUser(int uid);
    List<Team> getTeamByUser(int uid, int pageIndex, int pageSize);


}
